<div class="ibox">
    <div class="ibox-title">
        <h5>banner列表</h5>
		<div class="nowrap pull-right" style="margin-top:10px">
		    <button data-modal='banner/form' data-title="添加" class='layui-btn layui-btn-small'><i class='fa fa-plus'></i> 添加</button>
    <button onclick="history.go(-1);" data-title="返回" class='layui-btn layui-btn-small'>返回</button>
		</div>
	</div>
<div class="ibox-content fadeInUp animated">
<form onsubmit="return false;" data-auto="" method="POST">
    <input type="hidden" value="resort" name="action"/>
    <table class="table table-hover">
        <thead>
            <tr>
                <th class='text-center'>图片</th>
                <th class='text-center'>标题</th>
                <th class='text-center'>创建时间</th>
                <th class='text-center'>状态</th>
                <th class='text-center'>操作</th>
            </tr>
        </thead>
        <tbody>
            <#list banners as banner>
            <tr>
                <td class='text-center'>
                	<img data-tips-image="" style="height:auto;max-height:32px;min-width:32px" src='${banner.img!""}'/>
                </td>
                <td class='text-center'>${banner.title!""}</td>
                <td class='text-center'>${banner.c_time!""}</td>
                <td class='text-center'>
                	<span>${(banner.status==0)?string("隐藏","<span style='color:#090'>显示</span>")}</span>
                </td>
                <td class='text-center nowrap'>
                    <a data-modal='banner/form?id=${banner.id!""}' href="javascript:void(0)">编辑</a>
                	<span class="text-explode">|</span>
                	<#if banner.status==0>
                    <a data-update='${banner.id!""}' data-field='status' data-value='1' data-action='banner/update_banner_status?status=1' href="javascript:void(0)">显示</a>
                  	 <#elseif banner.status==1>
                    <a data-update='${banner.id!""}' data-field='status' data-value='0'data-action='banner/update_banner_status?status=0' href="javascript:void(0)">隐藏</a>
                    </#if>
                	<span class="text-explode">|</span>
                    <a data-update='${banner.id!""}' data-action='banner/sortBanner?action=top' href="javascript:void(0)">置顶</a>
                    <span class="text-explode">|</span>
                    <a data-update='${banner.id!""}' data-action='banner/sortBanner?action=up' href="javascript:void(0)">上移</a>
                    <span class="text-explode">|</span>
                    <a data-update='${banner.id!""}' data-action='banner/sortBanner?action=down' href="javascript:void(0)">下移</a>
                </td>
            </tr>
            </#list>
        </tbody>
    </table>
</form>
</div>
</div>